
<script src=" {{ asset('/bootstrap/js/jquery.min.js') }} "></script>
<script src=" {{ asset('/bootstrap/js/bootstrap.min.js') }} " ></script>
<style>
#go_top{width:50px;height:50px;position:fixed;right:5%;bottom:15%;}
#go_top img{width:100%;height:100%}
#footer{background: #9d9d9d;height:50px;width:100%;margin-top:50px;}
.footer{width: 100%; height: 50px;background: #9d9d9d;text-align: center;line-height: 50px;}
.footer p{color: #fff;}
.footer p a{color: #fff;}
.fixed-bottom{position: fixed;bottom: 0;width:100%;}
</style>

<div id="go_top">
	<a><img src="{{ asset('/images/login/go-top.png') }}" alt=""></a>
</div>

<!--底部-->
<div id="footer">
	<div class="footer">
		<p><span>京ICP备11001943号-13  Copyright  2017 Zhizhu.TV ALL Rights Reserved  </span> | <span> <a href="{{ url('/about') }}" target="{{ url('/about') }}">关于本站</a> </span> | <span> <a href="{{ url('/disclaimer') }}" target="{{ url('/disclaimer') }}">免责声明</a></span>
            | <span> <a href="{{ url('/contact') }}" target="{{ url('/contact') }}">联系我们</a></span>
</p>
	</div>
</div>
<!--底部-->
<script>

    //百度统计代码
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?356489328e6be89fe6d268c4a42556d8";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();

$(function(){
    function footerPosition(){
        $("#footer").removeClass("fixed-bottom");
        var contentHeight = document.body.scrollHeight,//网页正文全文高度
            winHeight = window.innerHeight;//可视窗口高度，不包括浏览器顶部工具栏
        if(!(contentHeight > winHeight)){
            //当网页正文高度小于可视窗口高度时，为footer添加类fixed-bottom
            $("#footer").addClass("fixed-bottom");
        } else {
            $("#footer").removeClass("fixed-bottom");
        }
    }
    footerPosition();
    $(window).resize(footerPosition);
});
 <!--回到顶部-->
	$(document).ready(function(){
		$("#go_top").hide();
		$(function () {
			//检测屏幕高度
			var height=$(window).height();
			//scroll() 方法为滚动事件
			$(window).scroll(function(){
				if ($(window).scrollTop()>height){
					$("#go_top").fadeIn(500);
				}else{
					$("#go_top").fadeOut(500);
				}
			});
			$("#go_top").click(function(){
				$('body,html').animate({scrollTop:0},100);
				return false;
			});
		});
	});
</script>
</html>